package com.example.project.projectspringcloud.config;

import com.example.project.projectspringcloud.common.thymeleaf.CustomDialect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.thymeleaf.dialect.IDialect;

@Configuration
public class TemplateEngineConfig {

    @Bean
    public IDialect addDialect() {
        return new CustomDialect();
    }

    /*public SpringTemplateEngine templateEngine() {
        SpringTemplateEngine templateEngine = new SpringTemplateEngine();
        templateEngine.setEnableSpringELCompiler(true);
        templateEngine.setTemplateResolver(templateResolver());
        templateEngine.addDialect(new HelloDialect());
        return templateEngine;
    }*/
}
